<!--每个页面公共顶部-->
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>

<!DOCTYPE html>

<html>

<head>

    <title>MyPetStore</title>
    <link rel="StyleSheet" href="css/mypetstore.css" type="text/css" media="screen" />
    <script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.7.1/jquery.js"></script>
</head>

<body>
<div id="Header">

    <div id="Logo">
        <div id="LogoContent">
            <a href="mainForm"><img src="images/logo-topbar.gif" /></a>
        </div>
    </div>

    <div id="Menu">
        <div id="MenuContent">
<%--            购物车图标--%>
            <a href="cartForm"><img align="middle" name="img_cart" src="images/cart.gif" /></a>
            <img align="middle" src="images/separator.gif" />
            <c:if test="${sessionScope.loginAccount==null}">
                <a href="signonForm">Sign In</a>
                <img align="middle" src="images/separator.gif" />
            </c:if>

            <c:if test="${sessionScope.loginAccount!=null}">
                <a href="<c:url value='/logout'/>">Sign Out</a>
                <img align="middle" src="images/separator.gif" />
                <a href="editMyAccountForm">My Account</a>
                <img align="middle" src="images/separator.gif" />
            </c:if>
            <a href="help.html">?</a>
        </div>
    </div>


    <div id="Search">
        <div id="SearchContent">
        <form action="searchProductForm" method="post">
            <input type="text" name="keywords" size="14" id="keyword" autocomplete="false">
            <input type="submit" value="Search">
            <c:if test="${requestScope.searchErrorMSg!=null}">
                <p><font color="red">${requestScope.searchErrorMsg}</font></p>
            </c:if>
        </form>

            <div id="productAutoComplete">
                <ul id="productAutoList">
<%--                    <li class="productAutoItem">im a item</li>--%>
<%--                    <li class="productAutoItem">im also a itemm</li>--%>
                </ul>
            </div>

        </div>
    </div>

    <div id="QuickLinks">
        <a href="categoryForm?categoryId=FISH"class="productShow" data-name="FISH"><img src="images/sm_fish.gif" /></a>
        <img src="images/separator.gif" />
        <a href="categoryForm?categoryId=DOGS"class="productShow" data-name="DOGS"><img src="images/sm_dogs.gif" /></a>
        <img src="images/separator.gif" />
        <a href="categoryForm?categoryId=REPTILES"class="productShow" data-name="REPTILES"><img src="images/sm_reptiles.gif" /></a>
        <img src="images/separator.gif" />
        <a href="categoryForm?categoryId=CATS"class="productShow" data-name="CATS"><img src="images/sm_cats.gif" /></a>
        <img src="images/separator.gif" />
        <a href="categoryForm?categoryId=BIRDS"class="productShow" data-name="BIRDS"><img src="images/sm_birds.gif" /></a>
    </div>

</div>

<div id="Content">